﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity.Car_Rental;
using Entity;

namespace Data.Car_Rental
{
    public interface IOrderRespository : IBackgroundRepository<Order>
    {
        /// <summary>
        /// 生成订单
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        VMessage GenerateOrder(Order order);

        /// <summary>
        /// 得到详细结果集
        /// </summary>
        /// <returns></returns>
        IQueryable<Order> GetDetailModel();

        /// <summary>
        /// 得到分页结果集
        /// </summary>
        /// <param name="vp"></param>
        /// <param name="pp"></param>
        /// <returns></returns>
        PagedList<Order> GetOrder(VPredication vp, PagingParam pp);

        /// <summary>
        /// 完成订单
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        VMessage FinishOrder(Order order);

    }
}
